package com.sky.service;

import com.sky.dto.EmployeeDTO;
import com.sky.dto.EmployeeLoginDTO;
import com.sky.dto.EmployeePageQueryDTO;
import com.sky.entity.Employee;
import com.sky.result.Result;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

public interface EmployeeService {

    /**
     * 员工登录
     * @param employeeLoginDTO
     * @return
     */
    Employee login(EmployeeLoginDTO employeeLoginDTO);

    /**
     * 新增员工
     * @return
     */
    public Result addEmp( EmployeeDTO employeeDTO);

    /**
     * 分页查询员工
     * @param dto
     * @return
     */
    public Result pageEmp( EmployeePageQueryDTO dto);

    /**
     * 修改员工状态
     * @param status
     * @param id
     * @return
     */
    public Result updateEmpStatus( Integer status, Long id);


    /**
     * 通过ID单一查询员工
     */
    public Result getById( Long id);

    /**
     * 修改员工信息
     * @return
     */
    public Result putEmp(EmployeeDTO employeeDTO);

}
